// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from '/Users/wangyipeng/Desktop/s_1801B_shixun/实训2/umi-app/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": require('@/layouts/index.jsx').default,
    "routes": [
      {
        "path": "/",
        "exact": true,
        "component": require('@/pages/index/index.tsx').default
      },
      {
        "path": "/saveExcel",
        "exact": true,
        "component": require('@/pages/saveExcel/index.js').default
      },
      {
        "path": "/todo",
        "exact": true,
        "component": require('@/pages/todo/index.js').default
      },
      {
        "path": "/book",
        "routes": [
          {
            "path": "/book/bookItem",
            "exact": true,
            "component": require('@/pages/book/bookItem.jsx').default
          },
          {
            "path": "/book/bookRank",
            "exact": true,
            "component": require('@/pages/book/bookRank.jsx').default
          }
        ],
        "component": require('@/pages/book/_layout.jsx').default
      }
    ]
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
